<%-- 
    Document   : RegistroGuardia
    Created on : 29-06-2009, 04:12:44 PM
    Author     : Jorge
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Registro de Guardias</title>
        <link rel="stylesheet" href="estiloCalendario.css">
        <link rel="stylesheet" href="bomberos.css">
    </head>
    <body>
        <script type='Text/JavaScript' src='./scw.js'></script>
        <script type='Text/JavaScript' src='./scriptUno.js'></script>
         <div id="banner">
            <h1>CUERPO DE BOMBEROS DE CURACAVÍ PRIMERA COMPAÑIA</h1>
        </div>

        <div id="container">
		<div id="navigation">
         <html:form action="/GuardiaAction">
        <ul>
        <li><html:link page="/GuardiaAction.do?operacion=registrarGuardia" >Registrar Guardia</html:link></li>
        <li><html:link page="/GuardiaAction.do?operacion=consultar" >Listado de Guardias</html:link></li>
        <li><html:link page="/GuardiaAction.do?operacion=home" >Inicio</html:link></li>

       </ul>
        </html:form>
        </div>
		<div id="content">
            <h1>Datos de la guardia</h1>
        <html:form action="/GuardiaAction" onsubmit="enviar2()">
        <table border="0">
            <thead>
                <tr>
                    <th>Datos guardia</th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Fecha :</td>
                    <td><input type="text" readonly="true" name="fecha"></td>
                    <td><image src="./images/calendario.jpg" onclick="scwShow(document.forms[1].fecha,event);"  /></td>
                </tr>
                <tr>
                    <td> Seleccione los voluntarios :</td>
                    <td>
                        <logic:present name="rutVoluntarios" scope="request">
                                <select name="vols1"  id="vols1" >
                                    <logic:iterate id="item" name="rutVoluntarios" scope="request">
                                        <option>
                                            <bean:write name="item" property="rut"/>
                                        </option>
                                    </logic:iterate>
                                </select>
                            </logic:present>
                    </td>
                    <td>
                        <input type="button" value="Agregar>>" onclick="agregarVol()">
                        <input type="button" value="<<Quitar" onclick="quitarVol()">
                    </td>
                    <td>
                        <input type="hidden" name="vol" id="vol">
                        <select multiple size="4" name="vols2" id="vols2">

                        </select>
                    </td>
                </tr>
                <tr>
                    <td><html:submit value="Registrar" property="operacion"></html:submit></td>
                    <td><html:submit value="volver" property="operacion"></html:submit></td>
                </tr>
            </tbody>
        </table>
        <logic:present name="aviso" scope="request">
                    <bean:write name="aviso" scope="request" filter="false"/>
           </logic:present>
        </html:form>
             </div>
		<div id="cleardiv"></div>
	</div>
<div id="footer">Cuerpo de Bomberos de Curacaví
Primera Compañía
Fundada el 26 Febrero de 1941
AV. A. O'HIGGINS 1599 Curacaví
Fono:8351050 Fono/Fax:8352488 </div>
        
    </body>
</html>
